import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import {
  Button,
  Tabbar,
  TabbarItem,
  NavBar,
  Form,
  Field,
  Toast,
  Tabs,
  Tab,
  CellGroup,
  Cell,
  List,
  Icon,
  Grid,
  GridItem,
} from "vant";

Vue.use(Form);
Vue.use(Field);

Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);

Vue.use(Button);
Vue.use(Toast);
Vue.use(Tabs);
Vue.use(Tab);
Vue.use(Cell);
Vue.use(List);
Vue.use(Icon);

// 1. 注册Grid 、 GridItem， CellGroup
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(CellGroup);

Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
